<{if $xoops_notification.show}>
<{capture name="notificationList"}><{strip}>
  <{foreach name=outer item=category from=$xoops_notification.categories}>
  <{foreach name=inner item=event from=$category.events}>
  <tr>
    <{if $smarty.foreach.inner.first}>
    <th class="even" rowspan="<{$smarty.foreach.inner.total}>"><{$category.title}></th>
    <{/if}>
    <td class="odd">
    <{counter assign=index}>
    <input type="hidden" name="not_list[<{$index}>][params]" value="<{$category.name}>,<{$category.itemid}>,<{$event.name}>" />
    <input type="checkbox" id="not_list_<{$category.itemid}>_<{$index}>" name="not_list[<{$index}>][status]" value="1" <{if $event.subscribed}>checked="checked"<{/if}> />
    </td>
    <td class="odd"><label for="not_list_<{$category.itemid}>_<{$index}>"><{$event.caption}></label></td>
  </tr>
  <{/foreach}>
  <{/foreach}>
  <tr>
    <td class="foot" colspan="3" align="center"><input type="submit" name="not_submit" value="<{$smarty.const._NOT_UPDATENOW}>" /></td>
  </tr>
<{/strip}><{/capture}>

<h2><{$smarty.const._NOT_ACTIVENOTIFICATIONS}> - <{$smarty.const._NOT_NOTIFICATIONOPTIONS}></h2>
<form name="notification_select" id="notification_select" action="<{$xoops_notification.target_page}>" method="post">
<div class="skip"><input type="hidden" name="not_redirect" value="<{$xoops_notification.redirect_script}>" /></div>

<script type="text/javascript">
<!--
    document.write('  <table class="outer" summary="notificationable items">') ;
    document.write('  <thead>') ;
    document.write('    <tr>') ;
    document.write('      <th class="head"><{$smarty.const._NOT_CATEGORY}></th>') ;
    document.write('      <th class="head"><input name="allbox" id="allbox" onclick="xoopsCheckAll(\'notification_select\',\'allbox\');" type="checkbox" value="<{$smarty.const._NOT_CHECKALL}>" /></th>') ;
    document.write('      <th class="head"><label for="allbox"><{$smarty.const._NOT_EVENT}></label></th>') ;
    document.write('    </tr>') ;
    document.write('  </thead>') ;
    document.write('  <{$smarty.capture.notificationList}>') ;
    document.write('  </table>') ;
//-->
</script>
<noscript>
  <table class="outer" summary="notificationable items">
  <thead>
    <tr>
      <th class="head"><{$smarty.const._NOT_CATEGORY}></th>
      <th class="head" colspan="2"><{$smarty.const._NOT_EVENT}></th>
    </tr>
  </thead>
  <{$smarty.capture.notificationList}>
  </table>
</noscript>

<div style="text-align:center;">
<{$smarty.const._NOT_NOTIFICATIONMETHODIS}>&nbsp;<{$user_method}>&nbsp;&nbsp;[<a href="<{$editprofile_url|xoops_escape:link}>"><{$smarty.const._NOT_CHANGE}></a>]
</div>
</form>
<{/if}>